package org.jeecg.modules.online.config.p022d;

import com.baomidou.mybatisplus.annotation.DbType;
import org.apache.commons.lang.StringUtils;
import org.jeecg.common.util.dynamic.db.DbTypeUtils;
import org.jeecg.modules.online.cgform.consts.ExtendJsonKey;
import org.jeecg.modules.online.cgform.utils.CgformUtil;

/* renamed from: org.jeecg.modules.online.config.d.a */
/* loaded from: hibernate-re-3.7.1-RC.jar:org/jeecg/modules/online/config/d/a.class */
public class ColumnMeta {

    /* renamed from: a */
    private String f558a;

    /* renamed from: b */
    private String f559b;

    /* renamed from: c */
    private String f560c;

    /* renamed from: d */
    private int f561d;

    /* renamed from: e */
    private String f562e;

    /* renamed from: f */
    private String f563f;

    /* renamed from: g */
    private String f564g;

    /* renamed from: h */
    private int f565h;

    /* renamed from: i */
    private String f566i;

    /* renamed from: j */
    private String f567j;

    /* renamed from: k */
    private String f568k;

    /* renamed from: l */
    private String f569l;

    public boolean equals(Object obj) {
        if (obj == this) {
            return true;
        }
        if (!(obj instanceof ColumnMeta)) {
            return false;
        }
        ColumnMeta columnMeta = (ColumnMeta) obj;
        return (this.f562e.contains("date") || this.f562e.contains("blob") || this.f562e.contains(ExtendJsonKey.f133f)) ? this.f560c.equals(columnMeta.getColumnName()) && this.f566i.equals(columnMeta.f566i) && m61a(this.f563f, columnMeta.getComment()) && m61a(this.f564g, columnMeta.getFieldDefault()) : this.f562e.equals(columnMeta.getColunmType()) && this.f566i.equals(columnMeta.f566i) && this.f561d == columnMeta.getColumnSize() && m61a(this.f563f, columnMeta.getComment()) && m61a(this.f564g, columnMeta.getFieldDefault());
    }

    /* renamed from: a */
    public boolean m63a(DbType dbType, ColumnMeta columnMeta) {
        String colunmType = columnMeta.getColunmType();
        if (DbTypeUtils.dbTypeIf(dbType, new DbType[]{DbType.ORACLE, DbType.ORACLE_12C})) {
            if ("datetime".equalsIgnoreCase(colunmType) && "date".equalsIgnoreCase(this.f562e)) {
                return true;
            }
        } else if (DbTypeUtils.dbTypeIsSqlServer(dbType) && "date".equalsIgnoreCase(colunmType) && "datetime".equalsIgnoreCase(this.f562e)) {
            return true;
        }
        return this.f562e.equalsIgnoreCase(colunmType);
    }

    /* renamed from: a */
    public boolean m62a(Object obj, DbType dbType) {
        if (obj == this) {
            return true;
        }
        if (!(obj instanceof ColumnMeta)) {
            return false;
        }
        ColumnMeta columnMeta = (ColumnMeta) obj;
        if (m63a(dbType, columnMeta)) {
            return DbTypeUtils.dbTypeIsSqlServer(dbType) ? (this.f562e.contains("date") || this.f562e.contains("blob") || this.f562e.contains(ExtendJsonKey.f133f)) ? this.f560c.equals(columnMeta.getColumnName()) && this.f566i.equals(columnMeta.f566i) : this.f562e.equals(columnMeta.getColunmType()) && this.f566i.equals(columnMeta.f566i) && this.f561d == columnMeta.getColumnSize() && this.f565h == columnMeta.getDecimalDigits() && m61a(this.f564g, columnMeta.getFieldDefault()) : DbTypeUtils.dbTypeIsPostgre(dbType) ? (this.f562e.contains("date") || this.f562e.contains("blob") || this.f562e.contains(ExtendJsonKey.f133f)) ? this.f560c.equals(columnMeta.getColumnName()) && this.f566i.equals(columnMeta.f566i) : this.f562e.equals(columnMeta.getColunmType()) && this.f566i.equals(columnMeta.f566i) && this.f561d == columnMeta.getColumnSize() && this.f565h == columnMeta.getDecimalDigits() && m61a(this.f564g, columnMeta.getFieldDefault()) : DbTypeUtils.dbTypeIsOracle(dbType) ? (this.f562e.contains("date") || this.f562e.contains("blob") || this.f562e.contains(ExtendJsonKey.f133f)) ? m63a(dbType, columnMeta) && this.f560c.equals(columnMeta.getColumnName()) && this.f566i.equals(columnMeta.f566i) : this.f562e.equals(columnMeta.getColunmType()) && this.f566i.equals(columnMeta.f566i) && this.f561d == columnMeta.getColumnSize() && this.f565h == columnMeta.getDecimalDigits() && m61a(this.f564g, columnMeta.getFieldDefault()) : (this.f562e.contains("date") || this.f562e.contains("blob") || this.f562e.contains(ExtendJsonKey.f133f)) ? m63a(dbType, columnMeta) && this.f560c.equals(columnMeta.getColumnName()) && this.f566i.equals(columnMeta.f566i) && m61a(this.f563f, columnMeta.getComment()) && m61a(this.f564g, columnMeta.getFieldDefault()) : this.f562e.equals(columnMeta.getColunmType()) && this.f566i.equals(columnMeta.f566i) && this.f561d == columnMeta.getColumnSize() && this.f565h == columnMeta.getDecimalDigits() && m61a(this.f563f, columnMeta.getComment()) && m61a(this.f564g, columnMeta.getFieldDefault());
        }
        return false;
    }

    /* renamed from: a */
    public boolean m60a(ColumnMeta columnMeta) {
        if (columnMeta == this) {
            return true;
        }
        return m61a(this.f563f, columnMeta.getComment());
    }

    /* renamed from: b */
    public boolean m59b(ColumnMeta columnMeta) {
        if (columnMeta == this) {
            return true;
        }
        return m61a(this.f563f, columnMeta.getComment());
    }

    /* renamed from: a */
    private boolean m61a(String str, String str2) {
        boolean isNotEmpty = StringUtils.isNotEmpty(str);
        boolean isNotEmpty2 = StringUtils.isNotEmpty(str2);
        if ("".equals(str2)) {
            if (!isNotEmpty || str.toLowerCase().toString().indexOf("null") >= 0) {
                return true;
            }
            return false;
        } else if (isNotEmpty != isNotEmpty2) {
            return false;
        } else {
            if (isNotEmpty) {
                return str.equals(str2);
            }
            return true;
        }
    }

    public String getColumnName() {
        return this.f560c;
    }

    public int getColumnSize() {
        return this.f561d;
    }

    public String getColunmType() {
        return this.f562e;
    }

    public String getComment() {
        return this.f563f;
    }

    public int getDecimalDigits() {
        return this.f565h;
    }

    public String getIsNullable() {
        return this.f566i;
    }

    public String getOldColumnName() {
        return this.f568k;
    }

    public int hashCode() {
        return this.f561d + (this.f562e.hashCode() * this.f560c.hashCode());
    }

    public void setColumnName(String columnName) {
        this.f560c = columnName;
    }

    public void setColumnSize(int columnSize) {
        this.f561d = columnSize;
    }

    public void setColunmType(String colunmType) {
        this.f562e = colunmType;
    }

    public void setComment(String comment) {
        this.f563f = comment;
    }

    public void setDecimalDigits(int decimalDigits) {
        this.f565h = decimalDigits;
    }

    public void setIsNullable(String isNullable) {
        this.f566i = isNullable;
    }

    public void setOldColumnName(String oldColumnName) {
        this.f568k = oldColumnName;
    }

    public String toString() {
        return this.f560c + CgformUtil.f233E + this.f562e + CgformUtil.f233E + this.f566i + CgformUtil.f233E + this.f561d;
    }

    public String getColumnId() {
        return this.f559b;
    }

    public void setColumnId(String columnId) {
        this.f559b = columnId;
    }

    public String getTableName() {
        return this.f558a;
    }

    public void setTableName(String tableName) {
        this.f558a = tableName;
    }

    public String getFieldDefault() {
        return this.f564g;
    }

    public void setFieldDefault(String fieldDefault) {
        this.f564g = fieldDefault;
    }

    public String getPkType() {
        return this.f567j;
    }

    public void setPkType(String pkType) {
        this.f567j = pkType;
    }

    public String getRealDbType() {
        return this.f569l;
    }

    public void setRealDbType(String realDbType) {
        this.f569l = realDbType;
    }
}
